<?php
namespace ImiApp\Module\Member\Service\Base;

use Imi\Model\Model;
use Imi\Model\Annotation\DDL;
use Imi\Model\Annotation\Table;
use Imi\Model\Annotation\Column;
use Imi\Model\Annotation\Entity;

/**
 * 机构的文案 基类
 * @Entity
 * @Table(name="sc_jigou_article", id={"id"})
 * @DDL("CREATE TABLE `sc_jigou_article` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `type_status` enum('1','2','99') DEFAULT NULL COMMENT '类型:1=课程优势,2=招生文案,99=其他',
  `content` text COMMENT '文章内容',
  `images` varchar(5000) DEFAULT NULL COMMENT '图片集',
  `admin_id` int(10) unsigned DEFAULT NULL,
  `updatetime` int(10) DEFAULT NULL COMMENT '修改时间',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT COMMENT='机构的文案'")
 * @property int $id 
 * @property string $typeStatus 类型:1=课程优势,2=招生文案,99=其他
 * @property string $content 文章内容
 * @property string $images 图片集
 * @property int $adminId 
 * @property int $updatetime 修改时间
 */
abstract class ScJigouArticleBase extends Model
{
    /**
     * id
     * @Column(name="id", type="int", length=10, accuracy=0, nullable=false, default="", isPrimaryKey=true, primaryKeyIndex=0, isAutoIncrement=true)
     * @var int
     */
    protected $id;

    /**
     * 获取 id
     *
     * @return int
     */ 
    public function getId()
    {
        return $this->id;
    }

    /**
     * 赋值 id
     * @param int $id id
     * @return static
     */ 
    public function setId($id)
    {
        $this->id = $id;
        return $this;
    }

    /**
     * 类型:1=课程优势,2=招生文案,99=其他
     * type_status
     * @Column(name="type_status", type="enum", length=0, accuracy=0, nullable=true, default="", isPrimaryKey=false, primaryKeyIndex=-1, isAutoIncrement=false)
     * @var string
     */
    protected $typeStatus;

    /**
     * 获取 typeStatus - 类型:1=课程优势,2=招生文案,99=其他
     *
     * @return string
     */ 
    public function getTypeStatus()
    {
        return $this->typeStatus;
    }

    /**
     * 赋值 typeStatus - 类型:1=课程优势,2=招生文案,99=其他
     * @param string $typeStatus type_status
     * @return static
     */ 
    public function setTypeStatus($typeStatus)
    {
        $this->typeStatus = $typeStatus;
        return $this;
    }

    /**
     * 文章内容
     * content
     * @Column(name="content", type="text", length=0, accuracy=0, nullable=true, default="", isPrimaryKey=false, primaryKeyIndex=-1, isAutoIncrement=false)
     * @var string
     */
    protected $content;

    /**
     * 获取 content - 文章内容
     *
     * @return string
     */ 
    public function getContent()
    {
        return $this->content;
    }

    /**
     * 赋值 content - 文章内容
     * @param string $content content
     * @return static
     */ 
    public function setContent($content)
    {
        $this->content = $content;
        return $this;
    }

    /**
     * 图片集
     * images
     * @Column(name="images", type="varchar", length=5000, accuracy=0, nullable=true, default="", isPrimaryKey=false, primaryKeyIndex=-1, isAutoIncrement=false)
     * @var string
     */
    protected $images;

    /**
     * 获取 images - 图片集
     *
     * @return string
     */ 
    public function getImages()
    {
        return $this->images;
    }

    /**
     * 赋值 images - 图片集
     * @param string $images images
     * @return static
     */ 
    public function setImages($images)
    {
        $this->images = $images;
        return $this;
    }

    /**
     * admin_id
     * @Column(name="admin_id", type="int", length=10, accuracy=0, nullable=true, default="", isPrimaryKey=false, primaryKeyIndex=-1, isAutoIncrement=false)
     * @var int
     */
    protected $adminId;

    /**
     * 获取 adminId
     *
     * @return int
     */ 
    public function getAdminId()
    {
        return $this->adminId;
    }

    /**
     * 赋值 adminId
     * @param int $adminId admin_id
     * @return static
     */ 
    public function setAdminId($adminId)
    {
        $this->adminId = $adminId;
        return $this;
    }

    /**
     * 修改时间
     * updatetime
     * @Column(name="updatetime", type="int", length=10, accuracy=0, nullable=true, default="", isPrimaryKey=false, primaryKeyIndex=-1, isAutoIncrement=false)
     * @var int
     */
    protected $updatetime;

    /**
     * 获取 updatetime - 修改时间
     *
     * @return int
     */ 
    public function getUpdatetime()
    {
        return $this->updatetime;
    }

    /**
     * 赋值 updatetime - 修改时间
     * @param int $updatetime updatetime
     * @return static
     */ 
    public function setUpdatetime($updatetime)
    {
        $this->updatetime = $updatetime;
        return $this;
    }

}
